﻿namespace SuperMarieApi.App.Controllers.Framework.Config.ConfigFile
{
    using System;

    [AttributeUsage(AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
    public class ConfigFileAttribute: Attribute
    {
        private string _relatedPath;
        private bool _i18n;
        public ConfigFileAttribute(string relatedPath)
            :this(false,relatedPath)
        {
        }

        public ConfigFileAttribute(bool i18n, string relatedPath)
        {
            this._relatedPath = relatedPath;
            this._i18n = i18n;
        }

        public string RelativePath
        {
            get
            {
                return this._relatedPath;
            }
        }

        public bool I18N
        {
            get
            {
                return this._i18n;
            }
        }
    }
}
